<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Vue监视数据改变的的原理</title>
  <script src="../js/vue.js"></script>
</head>
<body>
   <div id="root">
    
      <h2>姓名：{{name}}</h2>
      <h2>住址：{{address}}</h2>
      
      <!-- (1) 对象数据改变的原理就是调用setter
           (2) Vue给每个对象都的属性不断通过数据代理生成的getter和setter
               当前层的属性都是代理当时赋值过来的数据
      -->
   </div>
    <script type='text/javascript'>
        new Vue({
            el:'#root',
            data:{
               name:'周杰',
               address:'扬州'
            }
        })
    </script>
</body>
</html>